/* Yet Another Experimental Software Renderer
 *
 * Copyright (c) 2010 Pawel "Hery" Dziepak
 */

#include "pipeline.h"

namespace yaesr {
	class function_input : public vertex_input {
	public:
		function_input() : receiving_data(false) { }

		void begin(primitive_type);

		void set_vertex(double x, double y, double z);
		void set_color(double a, double r, double g, double b);
		void set_texccord(double u, double v);

		void end();

	private:
		bool receiving_data;

		primitive_type p_type;
		std::vector<vertex> vertices;
	};
}